import java.io.File;
import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description: 查看file的目录下所有内容的名字，只有最近一级
 */
public class Demo6 {
    public static void main(String[] args) {
        File file = new File("./");
        System.out.println(Arrays.toString(file.list()));
        System.out.println(Arrays.toString(file.listFiles()));
    }
}
